package com.bckj.fastboot.security.service;


import com.bckj.fastboot.upms.api.dto.ClientAuthInfo;
import com.bckj.fastboot.upms.api.dto.UserAuthInfo;

public interface FastUserDetailsProvider {

    /**
     * 获取客户端信息
     *
     * @param clientId 客户端id
     * @return {@link ClientAuthInfo}
     */
    default ClientAuthInfo getClientDetails(String clientId) {
        throw new UnsupportedOperationException();
    }


    /**
     * 获取系统用户信息
     *
     * @param username 账号
     * @return {@link UserAuthInfo}
     */
    default UserAuthInfo getSysUserDetails(String username) {
        throw new UnsupportedOperationException();
    }


    /**
     * 获取用户信息
     *
     * @param phone 手机号
     * @return {@link UserAuthInfo}
     */
    default UserAuthInfo getUserDetails(String phone) {
        throw new UnsupportedOperationException();
    }
}
